<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j">
	
<ui:composition template="/layout/template.xhtml">
    
<ui:define name="body">

	<rich:dataTable id="listPacientes"
         				value="#{pacienteAction.pacientes.toArray()}"
         				var="_paciente" styleClass="dataTable">
         			
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Nome"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.nome}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="CPF"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.cpf}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Logradouro"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.logradouro}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="CEP"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.cep}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Bairro"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.bairro}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Cidade"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.cidade}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Telefone Fixo"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.foneFixo}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Telefone Celular"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.foneCelular}" />
 		</rich:column>
 		
 		<rich:column styleClass="center">
 			  <f:facet name="header">
	           	  <ui:include src="/layout/sort.xhtml">
	                  <ui:param name="propertyLabel" value="Email"/>
	              </ui:include>
  		      </f:facet>
 				<h:outputText value="#{_paciente.email}" />
 		</rich:column>
         			
     </rich:dataTable>

</ui:define>
</ui:composition>
</html>